package com.sjz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HelloWorldController {

    @RequestMapping("/")
    public String index() {
        return "index";
    }


    @RequestMapping(
            value = {"/testRequestMapping", "/test"},
            method = {RequestMethod.POST,RequestMethod.GET}
    )
    public String testRequestMapping() {

        return "success";
    }
}
